package com.yehuishou.dao;

import org.apache.ibatis.annotations.Param;

import com.yehuishou.pojo.Address;
import com.yehuishou.pojo.Erwm;
import com.yehuishou.pojo.Identity;
import com.yehuishou.pojo.User;

public interface UserDao {

	User findLogin(@Param("phone")String phone, @Param("password")String password);

	Integer findByPhone(String phone);

	Integer add(User user);

	void Update(User user);

	User findById(Integer uid);

	void saddress(Address address);

	Address findAByUid(@Param("uid")Integer uid);

	void delAddr(@Param("uid")Integer uid);

	void updatei(Identity identity);

	Identity findIById(@Param("uid")Integer uid);

	void updateAddr(Address addr);

	void delErwm(Integer uid);

	void saveErwm(Erwm erwm);

	String findErwm(@Param("uid")Integer uid);

}
